// 配置模块
import dotenv from 'dotenv';
import * as jwt from 'jsonwebtoken';
dotenv.config();

export const config = {
  jwtSecret: process.env.JWT_SECRET as jwt.Secret || 'dev_secret',
  jwtExpiresIn: process.env.JWT_EXPIRES_IN || '1h',
  jwtRefreshExpiresIn: process.env.JWT_REFRESH_EXPIRES_IN || '7d',
  useMockAPI: process.env.USE_MOCK_API === 'true',
  port: parseInt(process.env.PORT || '3000', 10),
};

